package net.androidstudy.koreabeach;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class KoreaBeach extends Activity implements OnClickListener {
    
	ImageButton imagebutton;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //xml로 부터 객체 얻어옴        
        imagebutton = (ImageButton) findViewById(R.id.imagebutton);
        
        //이벤트 부착
        imagebutton.setOnClickListener(this);        
    }

	@Override
	public void onClick(View v) {
		
		Intent intent = new Intent().setClass(this, KoreaAreaName.class);
		//새로운 화면을 띄우시오
		startActivity(intent);
	}
}